package com.xnj.testweb.common.exeception;

import lombok.Data;

/**
 * @author 86182
 * @data 2023/4/4 10:00
 * <p>
 * 自定义异常，继承 RuntimeException
 */
@Data
public class CommonException extends RuntimeException {

    /**
     * 异常编码
     */
    private int code;
    /**
     * 异常信息
     */
    private String msg;

    public CommonException() {
    }

    public CommonException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
